/*
* Copyright 2017 Yonyou Auto Information Technology（Shanghai） Co., Ltd. All Rights Reserved.
*
* This software is published under the terms of the YONYOU Software
* License version 1.0, a copy of which has been included with this
* distribution in the LICENSE.txt file.
*
* @Project Name : marketing-service-shopping
*
* @File name : ShoppingConstant.java
*
* @Author : Administrator
*
* @Date : 2017年4月10日
*
----------------------------------------------------------------------------------
*     Date       Who       Version     Comments
* 1. 2017年4月10日    Administrator    1.0
*
*
*
*
----------------------------------------------------------------------------------
*/
	
package com.yonyou.gmmc.service.shopping.constant;


/**
*
* @author Administrator
* TODO description
* @date 2017年4月10日
*/

public class ShoppingConstant {

    public static final String SERVICE_NAME = "shopping";
    public static final String SERVICE_NAME_ZH = "积分购物";
    public static final String VERSION = "v1";
    public static final String BASE_PATH = "/" + SERVICE_NAME + "/api";
    
    
    public static final String BASE_PACKAGE="com.yonyou.gmmc.service.shopping";
    public static final String UTIL_PACKAGE=BASE_PACKAGE+".util";
    public static final String DAO_PACKAGE=BASE_PACKAGE+".dao";
    public static final String MODEL_PACKAGE=BASE_PACKAGE+".model"; 

    public static final String HEADER_OPENID="gmmc.openid";
    public static final String HEADER_USERID="user";
    
    /**
     * 商城自己的上下架状态
     */
	public static final Integer WX_STATUS_UP = 30031001;
	public static final Integer WX_STATUS_DOWN = 30031002;
    
    /**
     * 京东的上下架状态
     */
    public static final Integer STATUS_UP = 30021001;
    public static final Integer STATUS_DOWN = 30021002;
    
    /**
     * 积分商城的默认操作用户
     */
    public static final Integer OPT_USER=777777;
    
    /**
     * 订单状态
     */
    public static final String ORDER_STATUS_START = "30051001";  		   //处理中
    public static final String ORDER_STATUS_POINTS_DEDUCTED = "30051002";  //积分已扣
    public static final String ORDER_STATUS_SUCCESS = "30051003";		   //下单成功
    public static final String ORDER_STATUS_FIALED = "30051004";		   //下单失败
    public static final String WAITING_FOR_DELIVERY = "30051005";		   //待发货
    public static final String ORDER_DELIVER_GOODS = "30051006";		   //发货中
    public static final String SEND_EXPRESS_SUCCESS = "30051007";		   //妥投
    public static final String SEND_EXPRESS_FIALED = "30051008";		   //拒收
    public static final String CANCELLATION_OF_ORDER = "30051009";		   //已取消
    
    /**
     * 购物车商品状态
     */
    public static final String SHOPPING_CAR_START = "30081001";               //初始状态
    public static final String SHOPPING_CAR_STOCK_ENOUGH = "30081002";        //库存充足
    public static final String SHOPPING_CAR_STOCK_INSUFFICIENT = "30081003";  //库存不足
    public static final String SHOPPING_CAR_AREALIMIT = "30081004";           //区域限制
    public static final String SHOPPING_CAR_INFINITIZE = "30081005";          //不受地域限制
    
    /**
     * 下单固定参数
     */
    public static final String INVOICESTATE = "2";          //开票方式(1为随货开票，0为订单预借，2为集中开票 )
    public static final String INVOICETYPE = "1";           //1普通发票2增值税发票
    public static final String SELECTEDINVOICETITLE = "4";  //发票类型：4个人，5单位
    public static final String INVOICECONTENT = "1";        //1:明细，3：电脑配件，19:耗材，22：办公用品
    public static final String PAYMENTTYPE = "4";           //支付方式 (1：货到付款，2：邮局付款，4：在线支付，5：公司转账，6：银行转账，7：网银钱包，101：金采支付)
    public static final String SUBMITSTATE = "0";           //是否预占库存，0是预占库存（需要调用确认订单接口），1是不预占库存     金融支付必须预占库存传0
    public static final String ISUSEBALANCE = "0";          //使用余额paymentType=4时，此值固定是1其他支付方式0
    public static final String DOORDERPRICEMODE = "1";      //1:必需验证客户端订单价格快照，如果快照与京东价格不一致返回下单失败，需要更新商品价格后，重新下单;
    
    /*
     * 京东返回码拼接前缀
     */
    public static final String JD_CODE = "6001";
}
